import _fetch from './request';

// 获取学科列表接口
function getSubjectList(params) {
    return _fetch({
        url: "/subject/list",
        params,
    })
}

// 添加学科
function addSubject(data) {
    return _fetch({
        url: "/subject/add",
        method: 'post',
        data,
    })
}

function setSubjectStatus(data) {
    return _fetch({
        url: "/subject/status",
        method: 'post',
        data,
    })
}

function removeSubject(data) {
    return _fetch({
        url: "/subject/remove",
        method: 'post',
        data,
    })
}
function editSubject(data) {
    return _fetch({
        url: "/subject/edit",
        method: 'post',
        data,
    })
}

export {
    getSubjectList,
    addSubject,
    setSubjectStatus,
    removeSubject,
    editSubject
}